package bjut.zrpc.core.optimization.interceptors;

import bjut.zrpc.core.optimization.interfaces.Interceptor;
import bjut.zrpc.core.optimization.message.ZRpcMessage;
import bjut.zrpc.core.optimization.message.ZRpcRequestMessage;

/**
 * @Author: zhuzhiming
 * @Date: 2022/6/30 14:56
 */
public class DefaultInterceptor implements Interceptor {

    @Override
    public Object beforeHandlerInterceptor(ZRpcRequestMessage zRpcRequestMessage) {
        System.out.println("before......");
        return zRpcRequestMessage;
    }

    @Override
    public Object afterHandlerInterceptor(ZRpcMessage zRpcMessage) {
        System.out.println("after......");
        return zRpcMessage;
    }
}
